import { addAnswer, getAnswers, getAnswer, delAnswer } from "../../api/answers";

export default {
  namespaced: true,
  state: {},
  mutations: {},
  actions: {
    addAnswer(store, data) {
      return addAnswer(data);
    },
    getAnswers(store, params) {
      return getAnswers(params);
    },
    getAnswer(store, id) {
      return getAnswer(id);
    },
    delAnswer(store, id) {
      return delAnswer(id);
    },
  },
};
